package com.ijunfu.study.rabbitmq.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Title :
 * @Remarks:
 * @Author : Weizhiguo
 * @Version: 1.0.0
 * @Date : 2022-05-04
 */
@Component
public class Receiver {

    @RabbitListener(queues = {"${mq.queue.name}"})
    public void process(String msg) {
        System.out.println("recevier: " + msg);
    }

}
